package com.offcn.seckill;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@EnableScheduling // 开启定时任务
@EnableAsync // 开启多线程注解
@EnableFeignClients(basePackages = "com.offcn.pay.feign")
@MapperScan("com.offcn.seckill.dao")
public class SeckillApp {
    public static void main(String[] args) {
        SpringApplication.run(SeckillApp.class);
    }
}
